﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    public class EventDemo
    {
        public EventDemo() {
            this.Send += new EventDelegate(() =>
            {
                Console.WriteLine("信息已发送！");
            });
            this.Send();
        }
        public delegate void EventDelegate();

        public event EventDelegate Send;
    }
}
